package com.mongo.zzz;

import com.zzz.mongo.config.EnableMongo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

@SpringBootApplication
@EnableMongo
public class MongoApplication {
    public static void main(String[] args) {
//        SpringApplication.run(MongoApplication.class, args);

        List<String> strings = Arrays.asList("1", "2");
        List<String> collect = strings.stream().filter(e -> e.equals("3")).collect(Collectors.toList());
        System.out.println(collect);
    }

}
